﻿using EDMDesigner.Business.CSDL.Property.Navigation;
using EDMDesigner.Business.MSL.EntityType;
using EDMDesigner.Business.Util;

namespace EDMDesigner.Business.MSL.CUDFunction.Association
{
    public class CUDFunctionAssociationMapping
    {
        public CSDL.Association.Association Association { get; set; }
        public string FromRole { get; set; }
        public string ToRole { get; set; }

        private CUDFunctionParametersMapping _associationPropertiesMapping;
        public CUDFunctionParametersMapping AssociationPropertiesMapping
        {
            get 
            {
                if (_associationPropertiesMapping == null)
                    _associationPropertiesMapping = new CUDFunctionParametersMapping();
                return _associationPropertiesMapping; 
            }
        }
    }
}
